//package com.bbcare.jiangmen.service.impl;
//
//import cn.hutool.core.util.StrUtil;
//import cn.hutool.core.util.XmlUtil;
//import com.alibaba.fastjson.JSONObject;
//import com.bbcare.jiangmen.pojo.JiangmenLisReport;
//import com.bbcare.jiangmen.pojo.JiangmenLisResult;
//import com.bbcare.jiangmen.pojo.JiangmenPatientConver;
//import com.bbcare.jiangmen.service.IHisInfoJiangmenService;
//import com.bbcare.jiangmen.service.ILisInfoJiangmenService;
//import com.bbcare.jiangmen.util.MqEwellService;
//import com.bbcare.jiangmen.util.PageHelper;
//import com.github.pagehelper.PageInfo;
//import org.apache.commons.beanutils.BeanUtils;
//import org.apache.commons.lang.StringUtils;
//import org.springframework.stereotype.Service;
//
//import java.lang.reflect.InvocationTargetException;
//import java.util.ArrayList;
//import java.util.List;
//import java.util.Map;
//import java.util.regex.Matcher;
//import java.util.regex.Pattern;
//
///**
// * @Title		HisInfoJiangmenServiceImpl.java
// * @Package		com.bbcare.qianxinan.service.impl
// * @Description	江门Lis业务处理
// * @Author		<a href="mailto:jiangqian_java@163.com">jiang</a>
// * @Date		2023/10/19
// * @Version		V1.0
// * @Copyright	(c) Shanghai BBcare Medical Equipment Co.,Ltd.
// */
//@Service
//public class LisInfoJiangmenServiceImpl implements ILisInfoJiangmenService {
//
//    @Override
//    public PageInfo getPatientLisReport(JSONObject jsonObject) {
//        //健康卡号
//        String visit_card_no = (String) jsonObject.get("visit_card_no");
//        //住院号
//        String inhosp_index_no = (String) jsonObject.get("inhosp_index_no");
//
//        Integer pageSize = (Integer) jsonObject.get("pageSize");
//        Integer pageNum = (Integer) jsonObject.get("pageNum");
//
//        //正式环境数据组装查询
//        String fid = "BS10003";
//        String orderNo = "BS20003S16001";
//        String query = "";
//        if(StringUtils.isNotBlank(visit_card_no)){
//            query = "query item=\"VISIT_CARD_NO\" compy=\"=\" value=\"' "+ visit_card_no + " '\" splice=\"AND\"/>";
//        }
//        if(StringUtils.isNotBlank(inhosp_index_no)){
//            query = "query item=\"INHOSP_INDEX_NO\" compy=\"=\" value=\"' "+ inhosp_index_no + " '\" splice=\"AND\"/>";
//        }
//        //String resXml = MqEwellService.getDataFromMq(fid, orderNo, query);
//        String resXml = "<ESBEntry>\n" +
//                "\t<MessageHeader>\n" +
//                "\t\t<Fid>BS20003</Fid>\n" +
//                "\t\t<OrderNo>BS20003S16001</OrderNo>\n" +
//                "\t\t<SourceSysCode>S00</SourceSysCode>\n" +
//                "\t\t<TargetSysCode>S16</TargetSysCode>\n" +
//                "\t\t<HospCode>JMZX</HospCode>\n" +
//                "\t\t<MsgDate>2023-06-01 11:20:07.603</MsgDate>\n" +
//                "\t</MessageHeader>\n" +
//                "\t<RetInfo>\n" +
//                "\t\t<RetCode>1</RetCode>\n" +
//                "\t\t<RetCon>query success</RetCon>\n" +
//                "\t</RetInfo>\n" +
//                "\t<ResponseOption>\n" +
//                "\t\t<currentPage>1</currentPage>\n" +
//                "\t\t<totalPage>1</totalPage>\n" +
//                "\t</ResponseOption>\n" +
//                "\t<MsgInfo>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_PAT_RESOURCE_NAME>住院</TEST_PAT_RESOURCE_NAME><TEST_PAT_RESOURCE_CODE>3</TEST_PAT_RESOURCE_CODE><TEST_ITEM_GROUP_CODE>12982</TEST_ITEM_GROUP_CODE><TEST_CATEG_NAME>尿液分析-干化学</TEST_CATEG_NAME><TEST_CATEG_CODE/><SEND_TEST_DATE>20230601083447</SEND_TEST_DATE><SEND_DR_NAME>徐华纲</SEND_DR_NAME><SEND_DR_CODE>171033</SEND_DR_CODE><SAMPLE_TYPE_NAME>尿液</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10094</SAMPLE_TYPE_CODE><SAMPLE_NO>22</SAMPLE_NO><REPORT_NO>106102023060122</REPORT_NO><REPORT_NAME>江门中心医院检验报告单</REPORT_NAME><REPORT_DR_NAME>周树留</REPORT_DR_NAME><REPORT_DR_INDEX_NO/><REPORT_DR_CODE>639</REPORT_DR_CODE><REPORT_DATE1>2023-06-01T08:43:39</REPORT_DATE1><REPORT_DATE>20230601084339</REPORT_DATE><RECORD_DATE>2023-06-01</RECORD_DATE><PROOF_TEST_DATE>20230601084339</PROOF_TEST_DATE><PROOF_DR_NAME>周树留</PROOF_DR_NAME><PROOF_DR_CODE>639</PROOF_DR_CODE><PRINT_FLAG>0</PRINT_FLAG><PHYSI_SEX_NAME>女</PHYSI_SEX_NAME><PHYSI_SEX_CODE>2</PHYSI_SEX_CODE><PDF_INDEX>http://192.168.6.191:8093/ReportSearch/GetReport2?redir=106102023060122</PDF_INDEX><PAT_NAME>徐海燕</PAT_NAME><PAT_INDEX_NO>340499</PAT_INDEX_NO><PAGETYPE>0</PAGETYPE><OUTHOSP_NO>401549679</OUTHOSP_NO><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><ORDER_NO>46268801</ORDER_NO><ORDER_GROUP_NO/><NOTE/><MR_NO>340499</MR_NO><MICROBE_TEST_FLAG>0</MICROBE_TEST_FLAG><MARITAL_STATUS_NAME/><MARITAL_STATUS_CODE/><INHOSP_NUM>0</INHOSP_NUM><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ID_NUMBER/><EXECUT_DR_NAME>李时英</EXECUT_DR_NAME><EXECUT_DR_INDEX_NO/><EXECUT_DR_CODE>680</EXECUT_DR_CODE><EXECUT_DEPT_NAME>临检</EXECUT_DEPT_NAME><EXECUT_DEPT_INDEX_NO/><EXECUT_DEPT_CODE>10193</EXECUT_DEPT_CODE><EXECUT_DATE>20230601083447</EXECUT_DATE><ETHNIC_NAME/><ETHNIC_CODE/><EQUIPMENT_NAME>516迪瑞</EQUIPMENT_NAME><EQUIPMENT_CODE>10610</EQUIPMENT_CODE><EMPI_ID>340499</EMPI_ID><ELECTR_REQUISITION_NO>46268801</ELECTR_REQUISITION_NO><DATE_BIRTH>1979-06-12</DATE_BIRTH><CLINIC_DIAG_NAME>急性胰腺炎</CLINIC_DIAG_NAME><CLINIC_DIAG_CODE/><BED_NO>91032</BED_NO><APPLY_DR_NAME>徐华纲</APPLY_DR_NAME><APPLY_DR_INDEX_NO/><APPLY_DR_CODE>171033</APPLY_DR_CODE><APPLY_DEPT_NAME>消化内科一区</APPLY_DEPT_NAME><APPLY_DEPT_INDEX_NO/><APPLY_DEPT_CODE>210315</APPLY_DEPT_CODE><APPLY_DATE>20230531122117</APPLY_DATE><ANAMNESIS_NO>340499</ANAMNESIS_NO></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_PAT_RESOURCE_NAME>住院</TEST_PAT_RESOURCE_NAME><TEST_PAT_RESOURCE_CODE>3</TEST_PAT_RESOURCE_CODE><TEST_ITEM_GROUP_CODE>12285</TEST_ITEM_GROUP_CODE><TEST_CATEG_NAME>BCA+CRP</TEST_CATEG_NAME><TEST_CATEG_CODE/><SEND_TEST_DATE>20230601082317</SEND_TEST_DATE><SEND_DR_NAME>徐华纲</SEND_DR_NAME><SEND_DR_CODE>171033</SEND_DR_CODE><SAMPLE_TYPE_NAME>全血</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10067</SAMPLE_TYPE_CODE><SAMPLE_NO>395</SAMPLE_NO><REPORT_NO>106252023060146268790</REPORT_NO><REPORT_NAME>江门中心医院检验报告单</REPORT_NAME><REPORT_DR_NAME>林玉清</REPORT_DR_NAME><REPORT_DR_INDEX_NO/><REPORT_DR_CODE>684</REPORT_DR_CODE><REPORT_DATE1>2023-06-01T08:45:05</REPORT_DATE1><REPORT_DATE>20230601084505</REPORT_DATE><RECORD_DATE>2023-06-01</RECORD_DATE><PROOF_TEST_DATE>20230601084505</PROOF_TEST_DATE><PROOF_DR_NAME>林玉清</PROOF_DR_NAME><PROOF_DR_CODE>684</PROOF_DR_CODE><PRINT_FLAG>0</PRINT_FLAG><PHYSI_SEX_NAME>女</PHYSI_SEX_NAME><PHYSI_SEX_CODE>2</PHYSI_SEX_CODE><PDF_INDEX>http://192.168.6.191:8093/ReportSearch/GetReport2?redir=106252023060146268790</PDF_INDEX><PAT_NAME>徐海燕</PAT_NAME><PAT_INDEX_NO>340499</PAT_INDEX_NO><PAGETYPE>0</PAGETYPE><OUTHOSP_NO>401549679</OUTHOSP_NO><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><ORDER_NO>46268790</ORDER_NO><ORDER_GROUP_NO/><NOTE/><MR_NO>340499</MR_NO><MICROBE_TEST_FLAG>0</MICROBE_TEST_FLAG><MARITAL_STATUS_NAME/><MARITAL_STATUS_CODE/><INHOSP_NUM>0</INHOSP_NUM><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ID_NUMBER/><EXECUT_DR_NAME>陈嘉骥</EXECUT_DR_NAME><EXECUT_DR_INDEX_NO/><EXECUT_DR_CODE>6462</EXECUT_DR_CODE><EXECUT_DEPT_NAME>临检</EXECUT_DEPT_NAME><EXECUT_DEPT_INDEX_NO/><EXECUT_DEPT_CODE>10193</EXECUT_DEPT_CODE><EXECUT_DATE>20230601082317</EXECUT_DATE><ETHNIC_NAME/><ETHNIC_CODE/><EQUIPMENT_NAME>502迈瑞流水</EQUIPMENT_NAME><EQUIPMENT_CODE>10625</EQUIPMENT_CODE><EMPI_ID>340499</EMPI_ID><ELECTR_REQUISITION_NO>46268790</ELECTR_REQUISITION_NO><DATE_BIRTH>1979-06-12</DATE_BIRTH><CLINIC_DIAG_NAME>急性胰腺炎</CLINIC_DIAG_NAME><CLINIC_DIAG_CODE/><BED_NO>91032</BED_NO><APPLY_DR_NAME>徐华纲</APPLY_DR_NAME><APPLY_DR_INDEX_NO/><APPLY_DR_CODE>171033</APPLY_DR_CODE><APPLY_DEPT_NAME>消化内科一区</APPLY_DEPT_NAME><APPLY_DEPT_INDEX_NO/><APPLY_DEPT_CODE>210315</APPLY_DEPT_CODE><APPLY_DATE>20230531122117</APPLY_DATE><ANAMNESIS_NO>340499</ANAMNESIS_NO></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_PAT_RESOURCE_NAME>住院</TEST_PAT_RESOURCE_NAME><TEST_PAT_RESOURCE_CODE>3</TEST_PAT_RESOURCE_CODE><TEST_ITEM_GROUP_CODE>12141</TEST_ITEM_GROUP_CODE><TEST_CATEG_NAME>B型钠尿肽前体(PRO-BNP)测定(门诊)+血清肌钙蛋白Ⅰ测定</TEST_CATEG_NAME><TEST_CATEG_CODE/><SEND_TEST_DATE>20230601083733</SEND_TEST_DATE><SEND_DR_NAME>徐华纲</SEND_DR_NAME><SEND_DR_CODE>171033</SEND_DR_CODE><SAMPLE_TYPE_NAME>血清</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10001</SAMPLE_TYPE_CODE><SAMPLE_NO>144</SAMPLE_NO><REPORT_NO>107682023060146269011</REPORT_NO><REPORT_NAME>江门中心医院检验报告单</REPORT_NAME><REPORT_DR_NAME>刘静文</REPORT_DR_NAME><REPORT_DR_INDEX_NO/><REPORT_DR_CODE>184001</REPORT_DR_CODE><REPORT_DATE1>2023-06-01T09:01:48</REPORT_DATE1><REPORT_DATE>20230601090148</REPORT_DATE><RECORD_DATE>2023-06-01</RECORD_DATE><PROOF_TEST_DATE>20230601090148</PROOF_TEST_DATE><PROOF_DR_NAME>刘静文</PROOF_DR_NAME><PROOF_DR_CODE>184001</PROOF_DR_CODE><PRINT_FLAG>0</PRINT_FLAG><PHYSI_SEX_NAME>女</PHYSI_SEX_NAME><PHYSI_SEX_CODE>2</PHYSI_SEX_CODE><PDF_INDEX>http://192.168.6.191:8093/ReportSearch/GetReport2?redir=107682023060146269011</PDF_INDEX><PAT_NAME>徐海燕</PAT_NAME><PAT_INDEX_NO>340499</PAT_INDEX_NO><PAGETYPE>0</PAGETYPE><OUTHOSP_NO>401549679</OUTHOSP_NO><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><ORDER_NO>46269011</ORDER_NO><ORDER_GROUP_NO/><NOTE/><MR_NO>340499</MR_NO><MICROBE_TEST_FLAG>0</MICROBE_TEST_FLAG><MARITAL_STATUS_NAME/><MARITAL_STATUS_CODE/><INHOSP_NUM>0</INHOSP_NUM><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ID_NUMBER/><EXECUT_DR_NAME>陈振翅</EXECUT_DR_NAME><EXECUT_DR_INDEX_NO/><EXECUT_DR_CODE>0854</EXECUT_DR_CODE><EXECUT_DEPT_NAME>门诊生化</EXECUT_DEPT_NAME><EXECUT_DEPT_INDEX_NO/><EXECUT_DEPT_CODE>10186</EXECUT_DEPT_CODE><EXECUT_DATE>20230601083733</EXECUT_DATE><ETHNIC_NAME/><ETHNIC_CODE/><EQUIPMENT_NAME>723-IM1600</EQUIPMENT_NAME><EQUIPMENT_CODE>10768</EQUIPMENT_CODE><EMPI_ID>340499</EMPI_ID><ELECTR_REQUISITION_NO>46269011</ELECTR_REQUISITION_NO><DATE_BIRTH/><CLINIC_DIAG_NAME>急性胰腺炎</CLINIC_DIAG_NAME><CLINIC_DIAG_CODE/><BED_NO>91032</BED_NO><APPLY_DR_NAME>徐华纲</APPLY_DR_NAME><APPLY_DR_INDEX_NO/><APPLY_DR_CODE>171033</APPLY_DR_CODE><APPLY_DEPT_NAME>消化内科一区</APPLY_DEPT_NAME><APPLY_DEPT_INDEX_NO/><APPLY_DEPT_CODE>210315</APPLY_DEPT_CODE><APPLY_DATE>20230531123654</APPLY_DATE><ANAMNESIS_NO>340499</ANAMNESIS_NO></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_PAT_RESOURCE_NAME>住院</TEST_PAT_RESOURCE_NAME><TEST_PAT_RESOURCE_CODE>3</TEST_PAT_RESOURCE_CODE><TEST_ITEM_GROUP_CODE>12144</TEST_ITEM_GROUP_CODE><TEST_CATEG_NAME>B型钠尿肽前体(PRO-BNP)测定(门诊)+血清肌钙蛋白Ⅰ测定</TEST_CATEG_NAME><TEST_CATEG_CODE/><SEND_TEST_DATE>20230601083733</SEND_TEST_DATE><SEND_DR_NAME>徐华纲</SEND_DR_NAME><SEND_DR_CODE>171033</SEND_DR_CODE><SAMPLE_TYPE_NAME>血清</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10001</SAMPLE_TYPE_CODE><SAMPLE_NO>144</SAMPLE_NO><REPORT_NO>107682023060146269011</REPORT_NO><REPORT_NAME>江门中心医院检验报告单</REPORT_NAME><REPORT_DR_NAME>刘静文</REPORT_DR_NAME><REPORT_DR_INDEX_NO/><REPORT_DR_CODE>184001</REPORT_DR_CODE><REPORT_DATE1>2023-06-01T09:01:48</REPORT_DATE1><REPORT_DATE>20230601090148</REPORT_DATE><RECORD_DATE>2023-06-01</RECORD_DATE><PROOF_TEST_DATE>20230601090148</PROOF_TEST_DATE><PROOF_DR_NAME>刘静文</PROOF_DR_NAME><PROOF_DR_CODE>184001</PROOF_DR_CODE><PRINT_FLAG>0</PRINT_FLAG><PHYSI_SEX_NAME>女</PHYSI_SEX_NAME><PHYSI_SEX_CODE>2</PHYSI_SEX_CODE><PDF_INDEX>http://192.168.6.191:8093/ReportSearch/GetReport2?redir=107682023060146269011</PDF_INDEX><PAT_NAME>徐海燕</PAT_NAME><PAT_INDEX_NO>340499</PAT_INDEX_NO><PAGETYPE>0</PAGETYPE><OUTHOSP_NO>401549679</OUTHOSP_NO><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><ORDER_NO>46269011</ORDER_NO><ORDER_GROUP_NO/><NOTE/><MR_NO>340499</MR_NO><MICROBE_TEST_FLAG>0</MICROBE_TEST_FLAG><MARITAL_STATUS_NAME/><MARITAL_STATUS_CODE/><INHOSP_NUM>0</INHOSP_NUM><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ID_NUMBER/><EXECUT_DR_NAME>陈振翅</EXECUT_DR_NAME><EXECUT_DR_INDEX_NO/><EXECUT_DR_CODE>0854</EXECUT_DR_CODE><EXECUT_DEPT_NAME>门诊生化</EXECUT_DEPT_NAME><EXECUT_DEPT_INDEX_NO/><EXECUT_DEPT_CODE>10186</EXECUT_DEPT_CODE><EXECUT_DATE>20230601083733</EXECUT_DATE><ETHNIC_NAME/><ETHNIC_CODE/><EQUIPMENT_NAME>723-IM1600</EQUIPMENT_NAME><EQUIPMENT_CODE>10768</EQUIPMENT_CODE><EMPI_ID>340499</EMPI_ID><ELECTR_REQUISITION_NO>46269011</ELECTR_REQUISITION_NO><DATE_BIRTH/><CLINIC_DIAG_NAME>急性胰腺炎</CLINIC_DIAG_NAME><CLINIC_DIAG_CODE/><BED_NO>91032</BED_NO><APPLY_DR_NAME>徐华纲</APPLY_DR_NAME><APPLY_DR_INDEX_NO/><APPLY_DR_CODE>171033</APPLY_DR_CODE><APPLY_DEPT_NAME>消化内科一区</APPLY_DEPT_NAME><APPLY_DEPT_INDEX_NO/><APPLY_DEPT_CODE>210315</APPLY_DEPT_CODE><APPLY_DATE>20230531123654</APPLY_DATE><ANAMNESIS_NO>340499</ANAMNESIS_NO></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_PAT_RESOURCE_NAME>住院</TEST_PAT_RESOURCE_NAME><TEST_PAT_RESOURCE_CODE>3</TEST_PAT_RESOURCE_CODE><TEST_ITEM_GROUP_CODE>12300</TEST_ITEM_GROUP_CODE><TEST_CATEG_NAME>凝血机制六项组合</TEST_CATEG_NAME><TEST_CATEG_CODE/><SEND_TEST_DATE>20230601084425</SEND_TEST_DATE><SEND_DR_NAME>徐华纲</SEND_DR_NAME><SEND_DR_CODE>171033</SEND_DR_CODE><SAMPLE_TYPE_NAME>血浆</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10076</SAMPLE_TYPE_CODE><SAMPLE_NO>72</SAMPLE_NO><REPORT_NO>105422023060146268795</REPORT_NO><REPORT_NAME>江门中心医院检验报告单</REPORT_NAME><REPORT_DR_NAME>袁治成</REPORT_DR_NAME><REPORT_DR_INDEX_NO/><REPORT_DR_CODE>1575</REPORT_DR_CODE><REPORT_DATE1>2023-06-01T09:27:02</REPORT_DATE1><REPORT_DATE>20230601092702</REPORT_DATE><RECORD_DATE>2023-06-01</RECORD_DATE><PROOF_TEST_DATE>20230601092702</PROOF_TEST_DATE><PROOF_DR_NAME>袁治成</PROOF_DR_NAME><PROOF_DR_CODE>1575</PROOF_DR_CODE><PRINT_FLAG>0</PRINT_FLAG><PHYSI_SEX_NAME>女</PHYSI_SEX_NAME><PHYSI_SEX_CODE>2</PHYSI_SEX_CODE><PDF_INDEX>http://192.168.6.191:8093/ReportSearch/GetReport2?redir=105422023060146268795</PDF_INDEX><PAT_NAME>徐海燕</PAT_NAME><PAT_INDEX_NO>340499</PAT_INDEX_NO><PAGETYPE>0</PAGETYPE><OUTHOSP_NO>401549679</OUTHOSP_NO><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><ORDER_NO>46268795</ORDER_NO><ORDER_GROUP_NO/><NOTE/><MR_NO>340499</MR_NO><MICROBE_TEST_FLAG>0</MICROBE_TEST_FLAG><MARITAL_STATUS_NAME/><MARITAL_STATUS_CODE/><INHOSP_NUM>0</INHOSP_NUM><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ID_NUMBER/><EXECUT_DR_NAME>陈嘉骥</EXECUT_DR_NAME><EXECUT_DR_INDEX_NO/><EXECUT_DR_CODE>6462</EXECUT_DR_CODE><EXECUT_DEPT_NAME>临检</EXECUT_DEPT_NAME><EXECUT_DEPT_INDEX_NO/><EXECUT_DEPT_CODE>10193</EXECUT_DEPT_CODE><EXECUT_DATE>20230601084425</EXECUT_DATE><ETHNIC_NAME/><ETHNIC_CODE/><EQUIPMENT_NAME>506凝血</EQUIPMENT_NAME><EQUIPMENT_CODE>10542</EQUIPMENT_CODE><EMPI_ID>340499</EMPI_ID><ELECTR_REQUISITION_NO>46268795</ELECTR_REQUISITION_NO><DATE_BIRTH>1979-06-12</DATE_BIRTH><CLINIC_DIAG_NAME>急性胰腺炎</CLINIC_DIAG_NAME><CLINIC_DIAG_CODE/><BED_NO>91032</BED_NO><APPLY_DR_NAME>徐华纲</APPLY_DR_NAME><APPLY_DR_INDEX_NO/><APPLY_DR_CODE>171033</APPLY_DR_CODE><APPLY_DEPT_NAME>消化内科一区</APPLY_DEPT_NAME><APPLY_DEPT_INDEX_NO/><APPLY_DEPT_CODE>210315</APPLY_DEPT_CODE><APPLY_DATE>20230531122117</APPLY_DATE><ANAMNESIS_NO>340499</ANAMNESIS_NO></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_PAT_RESOURCE_NAME>住院</TEST_PAT_RESOURCE_NAME><TEST_PAT_RESOURCE_CODE>3</TEST_PAT_RESOURCE_CODE><TEST_ITEM_GROUP_CODE>12154</TEST_ITEM_GROUP_CODE><TEST_CATEG_NAME>血清淀粉酶测定+血清脂肪酶测定</TEST_CATEG_NAME><TEST_CATEG_CODE/><SEND_TEST_DATE>20230601085133</SEND_TEST_DATE><SEND_DR_NAME>徐华纲</SEND_DR_NAME><SEND_DR_CODE>171033</SEND_DR_CODE><SAMPLE_TYPE_NAME>血清</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10001</SAMPLE_TYPE_CODE><SAMPLE_NO>766</SAMPLE_NO><REPORT_NO>105842023060146268802</REPORT_NO><REPORT_NAME>江门中心医院检验报告单</REPORT_NAME><REPORT_DR_NAME>骆连妹</REPORT_DR_NAME><REPORT_DR_INDEX_NO/><REPORT_DR_CODE>681</REPORT_DR_CODE><REPORT_DATE1>2023-06-01T09:36:43</REPORT_DATE1><REPORT_DATE>20230601093643</REPORT_DATE><RECORD_DATE>2023-06-01</RECORD_DATE><PROOF_TEST_DATE>20230601093643</PROOF_TEST_DATE><PROOF_DR_NAME>骆连妹</PROOF_DR_NAME><PROOF_DR_CODE>681</PROOF_DR_CODE><PRINT_FLAG>0</PRINT_FLAG><PHYSI_SEX_NAME>女</PHYSI_SEX_NAME><PHYSI_SEX_CODE>2</PHYSI_SEX_CODE><PDF_INDEX>http://192.168.6.191:8093/ReportSearch/GetReport2?redir=105842023060146268802</PDF_INDEX><PAT_NAME>徐海燕</PAT_NAME><PAT_INDEX_NO>340499</PAT_INDEX_NO><PAGETYPE>0</PAGETYPE><OUTHOSP_NO>401549679</OUTHOSP_NO><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><ORDER_NO>46268802</ORDER_NO><ORDER_GROUP_NO/><NOTE/><MR_NO>340499</MR_NO><MICROBE_TEST_FLAG>0</MICROBE_TEST_FLAG><MARITAL_STATUS_NAME/><MARITAL_STATUS_CODE/><INHOSP_NUM>0</INHOSP_NUM><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ID_NUMBER/><EXECUT_DR_NAME>梁伊姗</EXECUT_DR_NAME><EXECUT_DR_INDEX_NO/><EXECUT_DR_CODE>214006</EXECUT_DR_CODE><EXECUT_DEPT_NAME>门诊生化</EXECUT_DEPT_NAME><EXECUT_DEPT_INDEX_NO/><EXECUT_DEPT_CODE>10186</EXECUT_DEPT_CODE><EXECUT_DATE>20230601085133</EXECUT_DATE><ETHNIC_NAME/><ETHNIC_CODE/><EQUIPMENT_NAME>710-罗氏</EQUIPMENT_NAME><EQUIPMENT_CODE>10584</EQUIPMENT_CODE><EMPI_ID>340499</EMPI_ID><ELECTR_REQUISITION_NO>46268802</ELECTR_REQUISITION_NO><DATE_BIRTH>1979-06-12</DATE_BIRTH><CLINIC_DIAG_NAME>急性胰腺炎</CLINIC_DIAG_NAME><CLINIC_DIAG_CODE/><BED_NO>91032</BED_NO><APPLY_DR_NAME>徐华纲</APPLY_DR_NAME><APPLY_DR_INDEX_NO/><APPLY_DR_CODE>171033</APPLY_DR_CODE><APPLY_DEPT_NAME>消化内科一区</APPLY_DEPT_NAME><APPLY_DEPT_INDEX_NO/><APPLY_DEPT_CODE>210315</APPLY_DEPT_CODE><APPLY_DATE>20230531122117</APPLY_DATE><ANAMNESIS_NO>340499</ANAMNESIS_NO></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_PAT_RESOURCE_NAME>住院</TEST_PAT_RESOURCE_NAME><TEST_PAT_RESOURCE_CODE>3</TEST_PAT_RESOURCE_CODE><TEST_ITEM_GROUP_CODE>12155</TEST_ITEM_GROUP_CODE><TEST_CATEG_NAME>血清淀粉酶测定+血清脂肪酶测定</TEST_CATEG_NAME><TEST_CATEG_CODE/><SEND_TEST_DATE>20230601085133</SEND_TEST_DATE><SEND_DR_NAME>徐华纲</SEND_DR_NAME><SEND_DR_CODE>171033</SEND_DR_CODE><SAMPLE_TYPE_NAME>血清</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10001</SAMPLE_TYPE_CODE><SAMPLE_NO>766</SAMPLE_NO><REPORT_NO>105842023060146268802</REPORT_NO><REPORT_NAME>江门中心医院检验报告单</REPORT_NAME><REPORT_DR_NAME>骆连妹</REPORT_DR_NAME><REPORT_DR_INDEX_NO/><REPORT_DR_CODE>681</REPORT_DR_CODE><REPORT_DATE1>2023-06-01T09:36:43</REPORT_DATE1><REPORT_DATE>20230601093643</REPORT_DATE><RECORD_DATE>2023-06-01</RECORD_DATE><PROOF_TEST_DATE>20230601093643</PROOF_TEST_DATE><PROOF_DR_NAME>骆连妹</PROOF_DR_NAME><PROOF_DR_CODE>681</PROOF_DR_CODE><PRINT_FLAG>0</PRINT_FLAG><PHYSI_SEX_NAME>女</PHYSI_SEX_NAME><PHYSI_SEX_CODE>2</PHYSI_SEX_CODE><PDF_INDEX>http://192.168.6.191:8093/ReportSearch/GetReport2?redir=105842023060146268802</PDF_INDEX><PAT_NAME>徐海燕</PAT_NAME><PAT_INDEX_NO>340499</PAT_INDEX_NO><PAGETYPE>0</PAGETYPE><OUTHOSP_NO>401549679</OUTHOSP_NO><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><ORDER_NO>46268802</ORDER_NO><ORDER_GROUP_NO/><NOTE/><MR_NO>340499</MR_NO><MICROBE_TEST_FLAG>0</MICROBE_TEST_FLAG><MARITAL_STATUS_NAME/><MARITAL_STATUS_CODE/><INHOSP_NUM>0</INHOSP_NUM><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ID_NUMBER/><EXECUT_DR_NAME>梁伊姗</EXECUT_DR_NAME><EXECUT_DR_INDEX_NO/><EXECUT_DR_CODE>214006</EXECUT_DR_CODE><EXECUT_DEPT_NAME>门诊生化</EXECUT_DEPT_NAME><EXECUT_DEPT_INDEX_NO/><EXECUT_DEPT_CODE>10186</EXECUT_DEPT_CODE><EXECUT_DATE>20230601085133</EXECUT_DATE><ETHNIC_NAME/><ETHNIC_CODE/><EQUIPMENT_NAME>710-罗氏</EQUIPMENT_NAME><EQUIPMENT_CODE>10584</EQUIPMENT_CODE><EMPI_ID>340499</EMPI_ID><ELECTR_REQUISITION_NO>46268802</ELECTR_REQUISITION_NO><DATE_BIRTH>1979-06-12</DATE_BIRTH><CLINIC_DIAG_NAME>急性胰腺炎</CLINIC_DIAG_NAME><CLINIC_DIAG_CODE/><BED_NO>91032</BED_NO><APPLY_DR_NAME>徐华纲</APPLY_DR_NAME><APPLY_DR_INDEX_NO/><APPLY_DR_CODE>171033</APPLY_DR_CODE><APPLY_DEPT_NAME>消化内科一区</APPLY_DEPT_NAME><APPLY_DEPT_INDEX_NO/><APPLY_DEPT_CODE>210315</APPLY_DEPT_CODE><APPLY_DATE>20230531122117</APPLY_DATE><ANAMNESIS_NO>340499</ANAMNESIS_NO></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_PAT_RESOURCE_NAME>住院</TEST_PAT_RESOURCE_NAME><TEST_PAT_RESOURCE_CODE>3</TEST_PAT_RESOURCE_CODE><TEST_ITEM_GROUP_CODE>12345</TEST_ITEM_GROUP_CODE><TEST_CATEG_NAME>肝胆十二项+血脂分析</TEST_CATEG_NAME><TEST_CATEG_CODE/><SEND_TEST_DATE>20230601091945</SEND_TEST_DATE><SEND_DR_NAME>徐华纲</SEND_DR_NAME><SEND_DR_CODE>171033</SEND_DR_CODE><SAMPLE_TYPE_NAME>血清</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10001</SAMPLE_TYPE_CODE><SAMPLE_NO>5042</SAMPLE_NO><REPORT_NO>101122023060146268793</REPORT_NO><REPORT_NAME>江门中心医院检验报告单</REPORT_NAME><REPORT_DR_NAME>卢焕兴</REPORT_DR_NAME><REPORT_DR_INDEX_NO/><REPORT_DR_CODE>641</REPORT_DR_CODE><REPORT_DATE1>2023-06-01T09:53:46</REPORT_DATE1><REPORT_DATE>20230601095346</REPORT_DATE><RECORD_DATE>2023-06-01</RECORD_DATE><PROOF_TEST_DATE>20230601095346</PROOF_TEST_DATE><PROOF_DR_NAME>卢焕兴</PROOF_DR_NAME><PROOF_DR_CODE>641</PROOF_DR_CODE><PRINT_FLAG>0</PRINT_FLAG><PHYSI_SEX_NAME>女</PHYSI_SEX_NAME><PHYSI_SEX_CODE>2</PHYSI_SEX_CODE><PDF_INDEX>http://192.168.6.191:8093/ReportSearch/GetReport2?redir=101122023060146268793</PDF_INDEX><PAT_NAME>徐海燕</PAT_NAME><PAT_INDEX_NO>340499</PAT_INDEX_NO><PAGETYPE>0</PAGETYPE><OUTHOSP_NO>401549679</OUTHOSP_NO><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><ORDER_NO>46268793</ORDER_NO><ORDER_GROUP_NO/><NOTE/><MR_NO>340499</MR_NO><MICROBE_TEST_FLAG>0</MICROBE_TEST_FLAG><MARITAL_STATUS_NAME/><MARITAL_STATUS_CODE/><INHOSP_NUM>0</INHOSP_NUM><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ID_NUMBER/><EXECUT_DR_NAME>彭又生</EXECUT_DR_NAME><EXECUT_DR_INDEX_NO/><EXECUT_DR_CODE>698</EXECUT_DR_CODE><EXECUT_DEPT_NAME>住院生化</EXECUT_DEPT_NAME><EXECUT_DEPT_INDEX_NO/><EXECUT_DEPT_CODE>10206</EXECUT_DEPT_CODE><EXECUT_DATE>20230601091945</EXECUT_DATE><ETHNIC_NAME/><ETHNIC_CODE/><EQUIPMENT_NAME>cos702_1</EQUIPMENT_NAME><EQUIPMENT_CODE>10112</EQUIPMENT_CODE><EMPI_ID>340499</EMPI_ID><ELECTR_REQUISITION_NO>46268793</ELECTR_REQUISITION_NO><DATE_BIRTH/><CLINIC_DIAG_NAME>急性胰腺炎</CLINIC_DIAG_NAME><CLINIC_DIAG_CODE/><BED_NO>91032</BED_NO><APPLY_DR_NAME>徐华纲</APPLY_DR_NAME><APPLY_DR_INDEX_NO/><APPLY_DR_CODE>171033</APPLY_DR_CODE><APPLY_DEPT_NAME>消化内科一区</APPLY_DEPT_NAME><APPLY_DEPT_INDEX_NO/><APPLY_DEPT_CODE>210315</APPLY_DEPT_CODE><APPLY_DATE>20230531122117</APPLY_DATE><ANAMNESIS_NO>340499</ANAMNESIS_NO></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_PAT_RESOURCE_NAME>住院</TEST_PAT_RESOURCE_NAME><TEST_PAT_RESOURCE_CODE>3</TEST_PAT_RESOURCE_CODE><TEST_ITEM_GROUP_CODE>12180</TEST_ITEM_GROUP_CODE><TEST_CATEG_NAME>降钙素原检测(化学发光法)</TEST_CATEG_NAME><TEST_CATEG_CODE/><SEND_TEST_DATE>20230601084750</SEND_TEST_DATE><SEND_DR_NAME>徐华纲</SEND_DR_NAME><SEND_DR_CODE>171033</SEND_DR_CODE><SAMPLE_TYPE_NAME>血清</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10001</SAMPLE_TYPE_CODE><SAMPLE_NO>24</SAMPLE_NO><REPORT_NO>105722023060146268798</REPORT_NO><REPORT_NAME>江门中心医院检验报告单</REPORT_NAME><REPORT_DR_NAME>欧阳欣</REPORT_DR_NAME><REPORT_DR_INDEX_NO/><REPORT_DR_CODE>697</REPORT_DR_CODE><REPORT_DATE1>2023-06-01T09:55:14</REPORT_DATE1><REPORT_DATE>20230601095514</REPORT_DATE><RECORD_DATE>2023-06-01</RECORD_DATE><PROOF_TEST_DATE>20230601095514</PROOF_TEST_DATE><PROOF_DR_NAME>欧阳欣</PROOF_DR_NAME><PROOF_DR_CODE>697</PROOF_DR_CODE><PRINT_FLAG>0</PRINT_FLAG><PHYSI_SEX_NAME>女</PHYSI_SEX_NAME><PHYSI_SEX_CODE>2</PHYSI_SEX_CODE><PDF_INDEX>http://192.168.6.191:8093/ReportSearch/GetReport2?redir=105722023060146268798</PDF_INDEX><PAT_NAME>徐海燕</PAT_NAME><PAT_INDEX_NO>340499</PAT_INDEX_NO><PAGETYPE>0</PAGETYPE><OUTHOSP_NO>401549679</OUTHOSP_NO><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><ORDER_NO>46268798</ORDER_NO><ORDER_GROUP_NO/><NOTE/><MR_NO>340499</MR_NO><MICROBE_TEST_FLAG>0</MICROBE_TEST_FLAG><MARITAL_STATUS_NAME/><MARITAL_STATUS_CODE/><INHOSP_NUM>0</INHOSP_NUM><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ID_NUMBER/><EXECUT_DR_NAME>卢江奋</EXECUT_DR_NAME><EXECUT_DR_INDEX_NO/><EXECUT_DR_CODE>1574</EXECUT_DR_CODE><EXECUT_DEPT_NAME>免疫</EXECUT_DEPT_NAME><EXECUT_DEPT_INDEX_NO/><EXECUT_DEPT_CODE>10187</EXECUT_DEPT_CODE><EXECUT_DATE>20230601084750</EXECUT_DATE><ETHNIC_NAME/><ETHNIC_CODE/><EQUIPMENT_NAME>606-新产业</EQUIPMENT_NAME><EQUIPMENT_CODE>10572</EQUIPMENT_CODE><EMPI_ID>340499</EMPI_ID><ELECTR_REQUISITION_NO>46268798</ELECTR_REQUISITION_NO><DATE_BIRTH>1979-06-12</DATE_BIRTH><CLINIC_DIAG_NAME>急性胰腺炎</CLINIC_DIAG_NAME><CLINIC_DIAG_CODE/><BED_NO>91032</BED_NO><APPLY_DR_NAME>徐华纲</APPLY_DR_NAME><APPLY_DR_INDEX_NO/><APPLY_DR_CODE>171033</APPLY_DR_CODE><APPLY_DEPT_NAME>消化内科一区</APPLY_DEPT_NAME><APPLY_DEPT_INDEX_NO/><APPLY_DEPT_CODE>210315</APPLY_DEPT_CODE><APPLY_DATE>20230531122117</APPLY_DATE><ANAMNESIS_NO>340499</ANAMNESIS_NO></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_PAT_RESOURCE_NAME>住院</TEST_PAT_RESOURCE_NAME><TEST_PAT_RESOURCE_CODE>3</TEST_PAT_RESOURCE_CODE><TEST_ITEM_GROUP_CODE>12364</TEST_ITEM_GROUP_CODE><TEST_CATEG_NAME>肿瘤三项 AFP+CEA+CA199</TEST_CATEG_NAME><TEST_CATEG_CODE/><SEND_TEST_DATE>20230601084144</SEND_TEST_DATE><SEND_DR_NAME>徐华纲</SEND_DR_NAME><SEND_DR_CODE>171033</SEND_DR_CODE><SAMPLE_TYPE_NAME>血清</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10001</SAMPLE_TYPE_CODE><SAMPLE_NO>2037</SAMPLE_NO><REPORT_NO>101132023060146268794</REPORT_NO><REPORT_NAME>江门中心医院检验报告单</REPORT_NAME><REPORT_DR_NAME>卢焕兴</REPORT_DR_NAME><REPORT_DR_INDEX_NO/><REPORT_DR_CODE>641</REPORT_DR_CODE><REPORT_DATE1>2023-06-01T09:55:25</REPORT_DATE1><REPORT_DATE>20230601095525</REPORT_DATE><RECORD_DATE>2023-06-01</RECORD_DATE><PROOF_TEST_DATE>20230601095525</PROOF_TEST_DATE><PROOF_DR_NAME>卢焕兴</PROOF_DR_NAME><PROOF_DR_CODE>641</PROOF_DR_CODE><PRINT_FLAG>0</PRINT_FLAG><PHYSI_SEX_NAME>女</PHYSI_SEX_NAME><PHYSI_SEX_CODE>2</PHYSI_SEX_CODE><PDF_INDEX>http://192.168.6.191:8093/ReportSearch/GetReport2?redir=101132023060146268794</PDF_INDEX><PAT_NAME>徐海燕</PAT_NAME><PAT_INDEX_NO>340499</PAT_INDEX_NO><PAGETYPE>0</PAGETYPE><OUTHOSP_NO>401549679</OUTHOSP_NO><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><ORDER_NO>46268794</ORDER_NO><ORDER_GROUP_NO/><NOTE/><MR_NO>340499</MR_NO><MICROBE_TEST_FLAG>0</MICROBE_TEST_FLAG><MARITAL_STATUS_NAME/><MARITAL_STATUS_CODE/><INHOSP_NUM>0</INHOSP_NUM><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ID_NUMBER/><EXECUT_DR_NAME>彭又生</EXECUT_DR_NAME><EXECUT_DR_INDEX_NO/><EXECUT_DR_CODE>698</EXECUT_DR_CODE><EXECUT_DEPT_NAME>住院生化</EXECUT_DEPT_NAME><EXECUT_DEPT_INDEX_NO/><EXECUT_DEPT_CODE>10206</EXECUT_DEPT_CODE><EXECUT_DATE>20230601084144</EXECUT_DATE><ETHNIC_NAME/><ETHNIC_CODE/><EQUIPMENT_NAME>cos702_2</EQUIPMENT_NAME><EQUIPMENT_CODE>10113</EQUIPMENT_CODE><EMPI_ID>340499</EMPI_ID><ELECTR_REQUISITION_NO>46268794</ELECTR_REQUISITION_NO><DATE_BIRTH/><CLINIC_DIAG_NAME>急性胰腺炎</CLINIC_DIAG_NAME><CLINIC_DIAG_CODE/><BED_NO>91032</BED_NO><APPLY_DR_NAME>徐华纲</APPLY_DR_NAME><APPLY_DR_INDEX_NO/><APPLY_DR_CODE>171033</APPLY_DR_CODE><APPLY_DEPT_NAME>消化内科一区</APPLY_DEPT_NAME><APPLY_DEPT_INDEX_NO/><APPLY_DEPT_CODE>210315</APPLY_DEPT_CODE><APPLY_DATE>20230531122117</APPLY_DATE><ANAMNESIS_NO>340499</ANAMNESIS_NO></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_PAT_RESOURCE_NAME>住院</TEST_PAT_RESOURCE_NAME><TEST_PAT_RESOURCE_CODE>3</TEST_PAT_RESOURCE_CODE><TEST_ITEM_GROUP_CODE>12342</TEST_ITEM_GROUP_CODE><TEST_CATEG_NAME>生化十项(住院)</TEST_CATEG_NAME><TEST_CATEG_CODE/><SEND_TEST_DATE>20230601092828</SEND_TEST_DATE><SEND_DR_NAME>徐华纲</SEND_DR_NAME><SEND_DR_CODE>171033</SEND_DR_CODE><SAMPLE_TYPE_NAME>血清</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10001</SAMPLE_TYPE_CODE><SAMPLE_NO>5146</SAMPLE_NO><REPORT_NO>101122023060146268792</REPORT_NO><REPORT_NAME>江门中心医院检验报告单</REPORT_NAME><REPORT_DR_NAME>卢焕兴</REPORT_DR_NAME><REPORT_DR_INDEX_NO/><REPORT_DR_CODE>641</REPORT_DR_CODE><REPORT_DATE1>2023-06-01T10:15:34</REPORT_DATE1><REPORT_DATE>20230601101534</REPORT_DATE><RECORD_DATE>2023-06-01</RECORD_DATE><PROOF_TEST_DATE>20230601101534</PROOF_TEST_DATE><PROOF_DR_NAME>卢焕兴</PROOF_DR_NAME><PROOF_DR_CODE>641</PROOF_DR_CODE><PRINT_FLAG>0</PRINT_FLAG><PHYSI_SEX_NAME>女</PHYSI_SEX_NAME><PHYSI_SEX_CODE>2</PHYSI_SEX_CODE><PDF_INDEX>http://192.168.6.191:8093/ReportSearch/GetReport2?redir=101122023060146268792</PDF_INDEX><PAT_NAME>徐海燕</PAT_NAME><PAT_INDEX_NO>340499</PAT_INDEX_NO><PAGETYPE>0</PAGETYPE><OUTHOSP_NO>401549679</OUTHOSP_NO><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><ORDER_NO>46268792</ORDER_NO><ORDER_GROUP_NO/><NOTE/><MR_NO>340499</MR_NO><MICROBE_TEST_FLAG>0</MICROBE_TEST_FLAG><MARITAL_STATUS_NAME/><MARITAL_STATUS_CODE/><INHOSP_NUM>0</INHOSP_NUM><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ID_NUMBER/><EXECUT_DR_NAME>彭又生</EXECUT_DR_NAME><EXECUT_DR_INDEX_NO/><EXECUT_DR_CODE>698</EXECUT_DR_CODE><EXECUT_DEPT_NAME>住院生化</EXECUT_DEPT_NAME><EXECUT_DEPT_INDEX_NO/><EXECUT_DEPT_CODE>10206</EXECUT_DEPT_CODE><EXECUT_DATE>20230601092828</EXECUT_DATE><ETHNIC_NAME/><ETHNIC_CODE/><EQUIPMENT_NAME>cos702_1</EQUIPMENT_NAME><EQUIPMENT_CODE>10112</EQUIPMENT_CODE><EMPI_ID>340499</EMPI_ID><ELECTR_REQUISITION_NO>46268792</ELECTR_REQUISITION_NO><DATE_BIRTH/><CLINIC_DIAG_NAME>急性胰腺炎</CLINIC_DIAG_NAME><CLINIC_DIAG_CODE/><BED_NO>91032</BED_NO><APPLY_DR_NAME>徐华纲</APPLY_DR_NAME><APPLY_DR_INDEX_NO/><APPLY_DR_CODE>171033</APPLY_DR_CODE><APPLY_DEPT_NAME>消化内科一区</APPLY_DEPT_NAME><APPLY_DEPT_INDEX_NO/><APPLY_DEPT_CODE>210315</APPLY_DEPT_CODE><APPLY_DATE>20230531122117</APPLY_DATE><ANAMNESIS_NO>340499</ANAMNESIS_NO></row></body></msg>]]></Msg>\n" +
//                "\t</MsgInfo>\n" +
//                "</ESBEntry>\n";
//        List<JiangmenLisReport> JiangmenLisReports = this.handlePatientLisReportByEsb(resXml);
//        PageInfo pageInfo = PageHelper.pageHelper(JiangmenLisReports, pageNum, pageSize);;
//        return pageInfo;
//    }
//
//
//    /**
//     * 处理检验报告数据
//     * @param resXml
//     * @return
//     */
//    private List<JiangmenLisReport> handlePatientLisReportByEsb(String resXml) {
//        List<JiangmenLisReport> jiangmenLisReports = new ArrayList<>();
//        Map<String, Object> stringObjectMap = XmlUtil.xmlToMap(resXml);
//        System.out.println("响应信息" + stringObjectMap);
//        if (stringObjectMap.containsKey("RetInfo")) {
//            Map<String, Object> RetInfo = (Map<String, Object>) stringObjectMap.get("RetInfo");
//            if (RetInfo.containsKey("RetCode") && RetInfo.get("RetCode").equals("1")) {
//                Map<String, Object> queryDataResponse = (Map<String, Object>) stringObjectMap.get("MsgInfo");
//                if (queryDataResponse.containsKey("Msg")) {
//                    List<String> list = (List) queryDataResponse.get("Msg");
//                    for (String result : list) {
//                        if (StrUtil.isNotEmpty(result)) {
//                            //手动去除多余一层的cdata
//                            //正则转化font写法
//                            String patternFont = "<!\\[CDATA\\[(.*?)]]>";
//                            // 创建 Pattern 对象
//                            Pattern p2 = Pattern.compile(patternFont);
//                            Matcher m2 = p2.matcher(result);
//                            if (m2.find()) {
//                                result = m2.replaceAll("$1");
//                            }
//                            Map<String, Object> tempMap = XmlUtil.xmlToMap(result);
//                            if(tempMap.containsKey("body")){
//                                Map<String, Object> body1 = (Map<String, Object>) tempMap.get("body");
//                                if(body1.containsKey("row")){
//                                    Map<String, Object> map = (Map<String, Object>) body1.get("row");
//                                    JiangmenLisReport jiangmenLisReport = new JiangmenLisReport();
//                                    try {
//                                        BeanUtils.populate(jiangmenLisReport, map);
//                                        jiangmenLisReports.add(jiangmenLisReport);
//                                    } catch (IllegalAccessException e) {
//                                        e.printStackTrace();
//                                    } catch (InvocationTargetException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }
//                        }
//                    }
//                }
//            }
//        }
//        return jiangmenLisReports;
//    }
//
//
//    /**
//     * 获取检验信息
//     * @param jsonObject
//     * @return
//     */
//    @Override
//    public PageInfo getPatientLisResult(JSONObject jsonObject) {
//        //报告单号
//        String reportNo = (String) jsonObject.get("reportNo");
//        Integer pageSize = (Integer) jsonObject.get("pageSize");
//        Integer pageNum = (Integer) jsonObject.get("pageNum");
//
//        //正式环境数据组装查询
//        String fid = "BS20004";
//        String orderNo = "BS20004S16001";
//        String query = "";
//        if(StringUtils.isNotBlank(reportNo)){
//            query = "<query item=\"REPORT_NO\" compy=\"=\" value=\"' "+ reportNo +" '\" splice=\"AND\"/>\n";
//        }
//        //String resXml = MqEwellService.getDataFromMq(fid, orderNo, query);
//        String resXml = "<ESBEntry>\n" +
//                "\t<MessageHeader>\n" +
//                "\t\t<Fid>BS20004</Fid>\n" +
//                "\t\t<OrderNo>BS20004S16001</OrderNo>\n" +
//                "\t\t<SourceSysCode>S00</SourceSysCode>\n" +
//                "\t\t<TargetSysCode>S16</TargetSysCode>\n" +
//                "\t\t<HospCode>JMZX</HospCode>\n" +
//                "\t\t<MsgDate>2023-06-01 11:23:02.437</MsgDate>\n" +
//                "\t</MessageHeader>\n" +
//                "\t<RetInfo>\n" +
//                "\t\t<RetCode>1</RetCode>\n" +
//                "\t\t<RetCon>query success</RetCon>\n" +
//                "\t</RetInfo>\n" +
//                "\t<ResponseOption>\n" +
//                "\t\t<currentPage>1</currentPage>\n" +
//                "\t\t<totalPage>1</totalPage>\n" +
//                "\t</ResponseOption>\n" +
//                "\t<MsgInfo>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_RESULT_VALUE_UNIT/><TEST_RESULT_VALUE>-</TEST_RESULT_VALUE><TEST_ITEM_NAME>尿胆原</TEST_ITEM_NAME><TEST_ITEM_ID>12596</TEST_ITEM_ID><TEST_ITEM_GROUP_CODE>12982</TEST_ITEM_GROUP_CODE><TEST_ITEM_CODE>UBG</TEST_ITEM_CODE><SORT_NO>12300</SORT_NO><SMEAR_RESULT/><SAMPLE_TYPE_NAME>尿液</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10094</SAMPLE_TYPE_CODE><REPORT_NO>106102023060122</REPORT_NO><REFERENCE_RANGES>阴性（－）</REFERENCE_RANGES><RECORD_DATE>20230601082011</RECORD_DATE><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><NOTE/><NORMAL_FLAG/><MICROBE_NAME/><MIC/><INVALID_FLAG>0</INVALID_FLAG><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ELECTR_REQUISITION_NO>46268801</ELECTR_REQUISITION_NO><DIAMETER/><BACTERIAL_COLONY_COUNT/></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_RESULT_VALUE_UNIT/><TEST_RESULT_VALUE>-</TEST_RESULT_VALUE><TEST_ITEM_NAME>尿胆红素</TEST_ITEM_NAME><TEST_ITEM_ID>12589</TEST_ITEM_ID><TEST_ITEM_GROUP_CODE>12982</TEST_ITEM_GROUP_CODE><TEST_ITEM_CODE>BIL</TEST_ITEM_CODE><SORT_NO>12296</SORT_NO><SMEAR_RESULT/><SAMPLE_TYPE_NAME>尿液</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10094</SAMPLE_TYPE_CODE><REPORT_NO>106102023060122</REPORT_NO><REFERENCE_RANGES>阴性（－）</REFERENCE_RANGES><RECORD_DATE>20230601082011</RECORD_DATE><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><NOTE/><NORMAL_FLAG/><MICROBE_NAME/><MIC/><INVALID_FLAG>0</INVALID_FLAG><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ELECTR_REQUISITION_NO>46268801</ELECTR_REQUISITION_NO><DIAMETER/><BACTERIAL_COLONY_COUNT/></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_RESULT_VALUE_UNIT/><TEST_RESULT_VALUE>1+</TEST_RESULT_VALUE><TEST_ITEM_NAME>尿酮体</TEST_ITEM_NAME><TEST_ITEM_ID>12590</TEST_ITEM_ID><TEST_ITEM_GROUP_CODE>12982</TEST_ITEM_GROUP_CODE><TEST_ITEM_CODE>KET</TEST_ITEM_CODE><SORT_NO>12297</SORT_NO><SMEAR_RESULT/><SAMPLE_TYPE_NAME>尿液</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10094</SAMPLE_TYPE_CODE><REPORT_NO>106102023060122</REPORT_NO><REFERENCE_RANGES>阴性（－）</REFERENCE_RANGES><RECORD_DATE>20230601082011</RECORD_DATE><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><NOTE/><NORMAL_FLAG>*</NORMAL_FLAG><MICROBE_NAME/><MIC/><INVALID_FLAG>0</INVALID_FLAG><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ELECTR_REQUISITION_NO>46268801</ELECTR_REQUISITION_NO><DIAMETER/><BACTERIAL_COLONY_COUNT/></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_RESULT_VALUE_UNIT/><TEST_RESULT_VALUE>1+</TEST_RESULT_VALUE><TEST_ITEM_NAME>尿潜血</TEST_ITEM_NAME><TEST_ITEM_ID>12539</TEST_ITEM_ID><TEST_ITEM_GROUP_CODE>12982</TEST_ITEM_GROUP_CODE><TEST_ITEM_CODE>BLD</TEST_ITEM_CODE><SORT_NO>12298</SORT_NO><SMEAR_RESULT/><SAMPLE_TYPE_NAME>尿液</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10094</SAMPLE_TYPE_CODE><REPORT_NO>106102023060122</REPORT_NO><REFERENCE_RANGES>阴性（－）</REFERENCE_RANGES><RECORD_DATE>20230601082011</RECORD_DATE><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><NOTE/><NORMAL_FLAG>*</NORMAL_FLAG><MICROBE_NAME/><MIC/><INVALID_FLAG>0</INVALID_FLAG><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ELECTR_REQUISITION_NO>46268801</ELECTR_REQUISITION_NO><DIAMETER/><BACTERIAL_COLONY_COUNT/></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_RESULT_VALUE_UNIT/><TEST_RESULT_VALUE>-</TEST_RESULT_VALUE><TEST_ITEM_NAME>尿蛋白质</TEST_ITEM_NAME><TEST_ITEM_ID>12594</TEST_ITEM_ID><TEST_ITEM_GROUP_CODE>12982</TEST_ITEM_GROUP_CODE><TEST_ITEM_CODE>PRO</TEST_ITEM_CODE><SORT_NO>12294</SORT_NO><SMEAR_RESULT/><SAMPLE_TYPE_NAME>尿液</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10094</SAMPLE_TYPE_CODE><REPORT_NO>106102023060122</REPORT_NO><REFERENCE_RANGES>阴性（－）</REFERENCE_RANGES><RECORD_DATE>20230601082011</RECORD_DATE><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><NOTE/><NORMAL_FLAG/><MICROBE_NAME/><MIC/><INVALID_FLAG>0</INVALID_FLAG><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ELECTR_REQUISITION_NO>46268801</ELECTR_REQUISITION_NO><DIAMETER/><BACTERIAL_COLONY_COUNT/></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_RESULT_VALUE_UNIT/><TEST_RESULT_VALUE>-</TEST_RESULT_VALUE><TEST_ITEM_NAME>亚硝酸盐</TEST_ITEM_NAME><TEST_ITEM_ID>12593</TEST_ITEM_ID><TEST_ITEM_GROUP_CODE>12982</TEST_ITEM_GROUP_CODE><TEST_ITEM_CODE>NIT</TEST_ITEM_CODE><SORT_NO>12299</SORT_NO><SMEAR_RESULT/><SAMPLE_TYPE_NAME>尿液</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10094</SAMPLE_TYPE_CODE><REPORT_NO>106102023060122</REPORT_NO><REFERENCE_RANGES>阴性（－）</REFERENCE_RANGES><RECORD_DATE>20230601082011</RECORD_DATE><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><NOTE/><NORMAL_FLAG/><MICROBE_NAME/><MIC/><INVALID_FLAG>0</INVALID_FLAG><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ELECTR_REQUISITION_NO>46268801</ELECTR_REQUISITION_NO><DIAMETER/><BACTERIAL_COLONY_COUNT/></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_RESULT_VALUE_UNIT/><TEST_RESULT_VALUE>1+</TEST_RESULT_VALUE><TEST_ITEM_NAME>尿白细胞酯酶</TEST_ITEM_NAME><TEST_ITEM_ID>12595</TEST_ITEM_ID><TEST_ITEM_GROUP_CODE>12982</TEST_ITEM_GROUP_CODE><TEST_ITEM_CODE>LEU</TEST_ITEM_CODE><SORT_NO>12301</SORT_NO><SMEAR_RESULT/><SAMPLE_TYPE_NAME>尿液</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10094</SAMPLE_TYPE_CODE><REPORT_NO>106102023060122</REPORT_NO><REFERENCE_RANGES>阴性（－）</REFERENCE_RANGES><RECORD_DATE>20230601082011</RECORD_DATE><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><NOTE/><NORMAL_FLAG>*</NORMAL_FLAG><MICROBE_NAME/><MIC/><INVALID_FLAG>0</INVALID_FLAG><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ELECTR_REQUISITION_NO>46268801</ELECTR_REQUISITION_NO><DIAMETER/><BACTERIAL_COLONY_COUNT/></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_RESULT_VALUE_UNIT/><TEST_RESULT_VALUE>3+</TEST_RESULT_VALUE><TEST_ITEM_NAME>尿葡萄糖</TEST_ITEM_NAME><TEST_ITEM_ID>12597</TEST_ITEM_ID><TEST_ITEM_GROUP_CODE>12982</TEST_ITEM_GROUP_CODE><TEST_ITEM_CODE>GLU</TEST_ITEM_CODE><SORT_NO>12295</SORT_NO><SMEAR_RESULT/><SAMPLE_TYPE_NAME>尿液</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10094</SAMPLE_TYPE_CODE><REPORT_NO>106102023060122</REPORT_NO><REFERENCE_RANGES>阴性（－）</REFERENCE_RANGES><RECORD_DATE>20230601082011</RECORD_DATE><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><NOTE/><NORMAL_FLAG>*</NORMAL_FLAG><MICROBE_NAME/><MIC/><INVALID_FLAG>0</INVALID_FLAG><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ELECTR_REQUISITION_NO>46268801</ELECTR_REQUISITION_NO><DIAMETER/><BACTERIAL_COLONY_COUNT/></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_RESULT_VALUE_UNIT/><TEST_RESULT_VALUE>6.5</TEST_RESULT_VALUE><TEST_ITEM_NAME>尿酸碱度（PH）</TEST_ITEM_NAME><TEST_ITEM_ID>12592</TEST_ITEM_ID><TEST_ITEM_GROUP_CODE>12982</TEST_ITEM_GROUP_CODE><TEST_ITEM_CODE>PH</TEST_ITEM_CODE><SORT_NO>12293</SORT_NO><SMEAR_RESULT/><SAMPLE_TYPE_NAME>尿液</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10094</SAMPLE_TYPE_CODE><REPORT_NO>106102023060122</REPORT_NO><REFERENCE_RANGES>4.5-8</REFERENCE_RANGES><RECORD_DATE>20230601082011</RECORD_DATE><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><NOTE/><NORMAL_FLAG/><MICROBE_NAME/><MIC/><INVALID_FLAG>0</INVALID_FLAG><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ELECTR_REQUISITION_NO>46268801</ELECTR_REQUISITION_NO><DIAMETER/><BACTERIAL_COLONY_COUNT/></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_RESULT_VALUE_UNIT/><TEST_RESULT_VALUE>1.010</TEST_RESULT_VALUE><TEST_ITEM_NAME>尿比重</TEST_ITEM_NAME><TEST_ITEM_ID>12591</TEST_ITEM_ID><TEST_ITEM_GROUP_CODE>12982</TEST_ITEM_GROUP_CODE><TEST_ITEM_CODE>SG</TEST_ITEM_CODE><SORT_NO>12292</SORT_NO><SMEAR_RESULT/><SAMPLE_TYPE_NAME>尿液</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10094</SAMPLE_TYPE_CODE><REPORT_NO>106102023060122</REPORT_NO><REFERENCE_RANGES>1.003-1.030</REFERENCE_RANGES><RECORD_DATE>20230601082011</RECORD_DATE><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><NOTE/><NORMAL_FLAG/><MICROBE_NAME/><MIC/><INVALID_FLAG>0</INVALID_FLAG><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ELECTR_REQUISITION_NO>46268801</ELECTR_REQUISITION_NO><DIAMETER/><BACTERIAL_COLONY_COUNT/></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_RESULT_VALUE_UNIT>mmol/L</TEST_RESULT_VALUE_UNIT><TEST_RESULT_VALUE>0</TEST_RESULT_VALUE><TEST_ITEM_NAME>维生素C</TEST_ITEM_NAME><TEST_ITEM_ID>12635</TEST_ITEM_ID><TEST_ITEM_GROUP_CODE/><TEST_ITEM_CODE>VTC</TEST_ITEM_CODE><SORT_NO/><SMEAR_RESULT/><SAMPLE_TYPE_NAME>尿液</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10094</SAMPLE_TYPE_CODE><REPORT_NO>106102023060122</REPORT_NO><REFERENCE_RANGES>0-0.6</REFERENCE_RANGES><RECORD_DATE>20230601082011</RECORD_DATE><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><NOTE/><NORMAL_FLAG/><MICROBE_NAME/><MIC/><INVALID_FLAG>0</INVALID_FLAG><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ELECTR_REQUISITION_NO>46268801</ELECTR_REQUISITION_NO><DIAMETER/><BACTERIAL_COLONY_COUNT/></row></body></msg>]]></Msg>\n" +
//                "\t\t<Msg><![CDATA[<msg><body><row action=\"select\"><VISIT_CARD_NO>20129793</VISIT_CARD_NO><UPDATE_DATE/><TEST_RESULT_VALUE_UNIT>mg/l</TEST_RESULT_VALUE_UNIT><TEST_RESULT_VALUE>0.15</TEST_RESULT_VALUE><TEST_ITEM_NAME>微白蛋白</TEST_ITEM_NAME><TEST_ITEM_ID>12659</TEST_ITEM_ID><TEST_ITEM_GROUP_CODE/><TEST_ITEM_CODE>M-ALB</TEST_ITEM_CODE><SORT_NO/><SMEAR_RESULT/><SAMPLE_TYPE_NAME>尿液</SAMPLE_TYPE_NAME><SAMPLE_TYPE_CODE>10094</SAMPLE_TYPE_CODE><REPORT_NO>106102023060122</REPORT_NO><REFERENCE_RANGES>0-0.15</REFERENCE_RANGES><RECORD_DATE>20230601082011</RECORD_DATE><OUTHOSP_INDEX_NO>340499</OUTHOSP_INDEX_NO><NOTE/><NORMAL_FLAG/><MICROBE_NAME/><MIC/><INVALID_FLAG>0</INVALID_FLAG><INHOSP_NO>401549679</INHOSP_NO><INHOSP_INDEX_NO>340499</INHOSP_INDEX_NO><ELECTR_REQUISITION_NO>46268801</ELECTR_REQUISITION_NO><DIAMETER/><BACTERIAL_COLONY_COUNT/></row></body></msg>]]></Msg>\n" +
//                "\t</MsgInfo>\n" +
//                "</ESBEntry>";
//        List<JiangmenLisResult> jiangmenLisResultList = this.handlePatientLisResultByEsb(resXml);
//        PageInfo pageInfo = PageHelper.pageHelper(jiangmenLisResultList, pageNum, pageSize);;
//        return pageInfo;
//    }
//
//    /**
//     * 处理检验项目明细
//     * @param resXml
//     * @return
//     */
//    private List<JiangmenLisResult> handlePatientLisResultByEsb(String resXml) {
//        List<JiangmenLisResult> jiangmenLisResultList = new ArrayList<>();
//        Map<String, Object> stringObjectMap = XmlUtil.xmlToMap(resXml);
//        System.out.println("响应信息" + stringObjectMap);
//        if (stringObjectMap.containsKey("RetInfo")) {
//            Map<String, Object> RetInfo = (Map<String, Object>) stringObjectMap.get("RetInfo");
//            if (RetInfo.containsKey("RetCode") && RetInfo.get("RetCode").equals("1")) {
//                Map<String, Object> queryDataResponse = (Map<String, Object>) stringObjectMap.get("MsgInfo");
//                if (queryDataResponse.containsKey("Msg")) {
//                    List<String> list = (List) queryDataResponse.get("Msg");
//                    for (String result : list) {
//                        if (StrUtil.isNotEmpty(result)) {
//                            //手动去除多余一层的cdata
//                            //正则转化font写法
//                            String patternFont = "<!\\[CDATA\\[(.*?)]]>";
//                            // 创建 Pattern 对象
//                            Pattern p2 = Pattern.compile(patternFont);
//                            Matcher m2 = p2.matcher(result);
//                            if (m2.find()) {
//                                result = m2.replaceAll("$1");
//                            }
//                            Map<String, Object> tempMap = XmlUtil.xmlToMap(result);
//                            if(tempMap.containsKey("body")){
//                                Map<String, Object> body1 = (Map<String, Object>) tempMap.get("body");
//                                if(body1.containsKey("row")){
//                                    Map<String, Object> map = (Map<String, Object>) body1.get("row");
//                                    JiangmenLisResult jiangmenLisResult = new JiangmenLisResult();
//                                    try {
//                                        BeanUtils.populate(jiangmenLisResult, map);
//                                        jiangmenLisResultList.add(jiangmenLisResult);
//                                    } catch (IllegalAccessException e) {
//                                        e.printStackTrace();
//                                    } catch (InvocationTargetException e) {
//                                        e.printStackTrace();
//                                    }
//                                }
//                            }
//                        }
//                    }
//                }
//            }
//        }
//        return jiangmenLisResultList;
//    }
//}
